package com.xujc.controller;

import com.opensymphony.xwork2.ActionSupport;
import com.xujc.dao.IDiscusDAO;

/**
 * Created by xujc on 6/21/15.
 */
public class PublishAction extends ActionSupport{

//    private Map<String, String[]> mParam;
    private IDiscusDAO mDiscusDAO;
    private int mFid;
    private String mContent;
    private int mFuckid;

    public int getFuckid() {
        return mFuckid;
    }

    public void setFuckid(int uid) {
        mFuckid = uid;
    }

    public String getContent() {
        return mContent;
    }

    public void setContent(String content) {
        mContent = content;
    }

    public int getFid() {
        return mFid;
    }

    public void setFid(int fid) {
        mFid = fid;
    }

    @Override
    public String execute() throws Exception {
        mDiscusDAO.publishDiscus(mFuckid,mFid,
                mContent,"");
        return SUCCESS;
    }



    public void setDiscusDAO(IDiscusDAO discusDAO) {
        mDiscusDAO = discusDAO;
    }
}
